package com.jboa.model;

import java.util.Date;

/**
 * Email entity. @author MyEclipse Persistence Tools
 */

public class Email implements java.io.Serializable {

	// Fields

	private Integer id;
	private String usernameFrom;
	private String usernameTo;
	private String title;
	private String content;
	private Date createtime;
	private String state;
	private String attachment;
	private String filetype;

	// Constructors

	/** default constructor */
	public Email() {
	}

	/** minimal constructor */
	public Email(String usernameFrom, String usernameTo, String title,
			String content, Date createtime, String state) {
		this.usernameFrom = usernameFrom;
		this.usernameTo = usernameTo;
		this.title = title;
		this.content = content;
		this.createtime = createtime;
		this.state = state;
	}

	/** full constructor */
	public Email(String usernameFrom, String usernameTo, String title,
			String content, Date createtime, String state, String attachment,
			String filetype) {
		this.usernameFrom = usernameFrom;
		this.usernameTo = usernameTo;
		this.title = title;
		this.content = content;
		this.createtime = createtime;
		this.state = state;
		this.attachment = attachment;
		this.filetype = filetype;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsernameFrom() {
		return this.usernameFrom;
	}

	public void setUsernameFrom(String usernameFrom) {
		this.usernameFrom = usernameFrom;
	}

	public String getUsernameTo() {
		return this.usernameTo;
	}

	public void setUsernameTo(String usernameTo) {
		this.usernameTo = usernameTo;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getAttachment() {
		return this.attachment;
	}

	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}

	public String getFiletype() {
		return this.filetype;
	}

	public void setFiletype(String filetype) {
		this.filetype = filetype;
	}

}